# 若依生成验证码图片时需要用到完整功能的库
FROM adoptopenjdk/openjdk8:jre8u-nightly

MAINTAINER Fpy

ENV TZ=Asia/Shanghai
# JVM环境变量控制
ENV JAVA_OPTS=""
# 链路追踪
ENV JAVA_AGENT_OPTS=""

# RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /jrkj-app

WORKDIR /jrkj-app

EXPOSE 16666

ADD ./target/jrkj-app.jar ./

CMD java $JAVA_OPTS $JAVA_AGENT_OPTS -jar jrkj-app.jar
